package com.it.controller;

import com.it.domain.ResponseResult;
import com.it.domain.vo.WebsiteInfoVo;
import com.it.service.WebsiteInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "网站基本信息")
@RestController
@RequestMapping("websiteInfo")
public class WebsiteInfoController {

    /**
     * 服务对象
     */
    @Autowired
    private WebsiteInfoService websiteInfoService;

    @ApiOperation("查看网站信息-前端")
    @GetMapping("/front")
    public ResponseResult<WebsiteInfoVo> selectWebsiteInfoByFront() {
        return websiteInfoService.selectWebsiteInfo();
    }

}
